package com.youxin.authserver.service;

import javax.servlet.http.HttpServletRequest;

import com.youxin.busfoundation.bean.ResponseObject;
import com.youxin.busfoundation.bean.login.RequestLoginBean;
import com.youxin.busfoundation.bean.login.RequestRefreshToken;
/**
 * 登录服务接口
 * @author yingde.cao
 *
 */
public interface LoginService {
	/**
	 * 登录
	 * @param bean
	 * @return String token
	 */
	ResponseObject login(RequestLoginBean bean);
	/**
	 * 刷新token
	 * @param bean
	 * @return String 新的token
	 */
	ResponseObject refreshToken(RequestRefreshToken bean);
	
    ResponseObject requestLoginVerifyCode(com.youxin.busfoundation.bean.login.RequestLoginVerifyCode bean) throws Exception;
    
    public ResponseObject logout(RequestRefreshToken bean,HttpServletRequest request);
   }
